package com.wlps.service;

import com.wlps.entity.FirstClassification;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wlps.result.ResultPageVo;
import com.wlps.result.ResultVo;
import com.wlps.vo.sendcenter.commodity.FirstClassificationVo;

import java.util.List;

/**
 * <p>
 * 一级分类表(first_classification)(删除一级分类时下面不能存在二级分类) 服务类
 * </p>
 *
 * @author ZWYZY
 * @since 2020-07-31
 */
public interface IFirstClassificationService extends IService<FirstClassification> {
    /**
     * 增加一级分类
     *
     * @param firstName
     * @return
     */
    ResultVo addFirstClassification(String firstName);


    /**
     * 分页显示一级分类
     *
     * @param pageNum
     * @param pageSize
     * @param firstName
     * @return
     */
    ResultPageVo<List<FirstClassificationVo>> getFirstClassification(int pageNum, int pageSize, String firstName);
}
